<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员列表</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css" media="screen">
	<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>
</head>
<body>
	<center>
	<div class="panel panel-primary">
		<block name="main">
		<div class="panel-heading">{$title}</div>
			<div class="panel-body">
				<table class="table table-striped table-hover table-condensed table-bordered" width="800" style="color:#999;">		
					<tr>
						<th style='text-align: center;'>ID</th>
						<th style='text-align: center;'>用户名称</th>
						<th style='text-align: center;'>真实姓名</th>
						<th style='text-align: center;'>所属角色</th>
						<th style='text-align: center;'>操作</th>
					</tr>
					<foreach name = 'list' item = 'val'>
					<tr>
						<th style='text-align: center;'>{$val.id}</th>
						<th style='text-align: center;'>{$val.username}</th>
						<th style='text-align: center;'>{$val.name}</th>
						<th>
							<volist name="val.role" id="role">
								<span style="text-align: center;">{$role}</span>
								&nbsp;
							</volist>
						</th>				
						<th style='text-align: center;'>
						<a href='{:U("Admin/Adminuser/edit",array('id'=>$val["id"]))}'><button class='btn btn-primary'>修改</button></a>
						<a href='{:U("Admin/Adminuser/del",array('id'=>$val["id"]))}'><button class="btn btn-danger">删除</button></a>
						<a href="{:U('Admin/Adminuser/rolelist',array('id'=>$val['id']))}"><button class="btn btn-info">分配角色</button></a>
						</th>
					</tr>
					</foreach>
				</table>
			</div>
		</div>
		</block>
	</div>
	</center>
</body>
</html>